actionbar: Add an element name to the css node
authorMatthias Clasen <mclasen@redhat.com>
Thu, 29 Oct 2015 11:08:15 +0000 (07:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 29 Oct 2015 11:08:15 +0000 (07:08 -0400)
This lets us avoid hardcoding the type in CSS.

gtk/gtkactionbar.c

index 4b60de06ae0e34ffdcd7fbca14a8d8c415af2086..dd8aaf43ed0501d598e88cfb6aa79d49279a8992 100644 (file)
  * contains an internal centered box which is centered with respect to
  * the full width of the box, even if the children at either side take
  * up different amounts of space.
+ *
+ * # CSS nodes
+ *
+ * GtkActionBar has a single CSS node with name actionbar.
  */
 
 struct _GtkActionBarPrivate
@@ -251,6 +255,7 @@ gtk_action_bar_class_init (GtkActionBarClass *klass)
   gtk_widget_class_bind_template_child_internal_private (widget_class, GtkActionBar, revealer);
 
   gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
+  gtk_widget_class_set_css_name (widget_class, "actionbar");
 }
 
 static void